# -*- coding: utf-8 -*-
# @Time    : 2021/11/8 20:25
# @Author  : hanyunxi
# @description   :
from id_validator import validator

def validateIdCard():
    month = [1,2,3,4,5,6,7,8,9,10,11,12]
    day = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]
    for m in month:
        for d in day:
            if len(str(m)) == 1:
                m = "0"+str(m);
            else:
                m = str(m)
            if len(str(d)) == 1:
                d = "0"+str(d);
            else:
                d = str(d)
            # print("生日：","1994"+m+d)
            idcard_first = "4202201994"
            idcard_last = "2494"
            idcard = idcard_first+m+d+idcard_last
            # print("身份证: ",idcard)
            flag = validator.is_valid(idcard)
            if flag:
                print(idcard)
if __name__ == '__main__':
    validateIdCard()